here are my exercises from head first java textbook