code for my assignments, will be using these as the basis for some other projects