Made first exercise from MIT 6.006