Corrected Errors pointed out by instructor