first version of assignment 2 code after fork