Serialization is a process of converting an in-memory object into a formatted chunk of data which can be converted back into the in-memory object.

Easiest solution is to implement Serializable interface and it pretty much solves our problem.