adding toString method to entities