this is my alternate HW for assignment 1