Codepath assignment 2