Added code for exercise0 hw3
Added code for exercise 1 hw3