assignment 1 with case