implemented excercise 2 and started 3