Function two seems to be working