Moving functions to prototype because in JavaScript functions are data so it will not create for all the objects now.