Assignment 2 & other examples

Working but some work to do on initialisation and allocation.