Added first function (although it's not yet working I think)