Coding done for CMPSC 122 PSU