Adding functions

Functions for manipulating data has been added