Code for 790 assignment