completed assignment 3b