Created funciton check from page 57