Implemented each component as a class and established each component's attributes from their details on the database