my first little chunk of code, dont laugh at it