added to_hash and to_json methods to project