Add functions for creating objects