some coding done for university