These are my solution for the first practical at the University of York (APRC)