defactor classes pojo