Changed the constructor of FreeObject to private