Issue 9: wrote checkRep. 

checkRep now checks to see if first and second are not null.