assignment 3 starting code and implemented inputer