The effectiveness of homeworks and impact in learning