coding: added a few more things included functions that act on variables
coding: finalised subset 4 and generalised variable assignment