Moving

Moving code to Initialize class and added Functions class.