how do students earn credits?