created functions for manipulating objects