Coding for my course work