refactored grades component to make use of the classes of the profile component