Marking class as serializable.
Using namespace for BinaryFormatter.