Added serializable class... it could be a nice feature in the future