Extended assignment 1