Homeworks from #1 to #40