Some initial work on coursework function