Code done on my own apart from school assignments