completed assignment2