finished checpeter2, added functions checking and quiz