FINAL  VERSION HOMEWORK#2 (Last version)