removing standalone serialization function
removing need to pass type to serializer
removed need to pass object instance now that serialization method is part of class