added student search, did most of contract functionality