check in Programming Assignment 2