First two problems in hw0 completed.