Add parse method to Entity