Implementing the objects class and its attributes