begin for assignment 3