Working with function and some of it's done