Defining basic functions

Defining a few of the basic functions