Implemented constructor and get set attributes