completed task 3 and 4
final assignment 2