Some of the code i wrote