assignment 1 source code