Refactored assignment 1 and added title assertion