added AJ's assignment 6