cleaned up version with parents and courses working !