created classes that will be used for database