Add more usefull method for serializeing the object