added camera class, moved some code to baseobject