started solution for Ch5 exercise and added some pseudocode for the remainder of the problem
finished up Ch5 exercise with added fault tolerance for incorrect inputs