my first attempt at writing some code