Code for various assignments