adding code from college projects