initial grades function for course homepage (enhancedment needed)