Reformatted provided code
Merge branch 'fixing_createobject'