Created the first function (for part 1). Everything works according to the examples but I might have to do some error checking for weird stuff.