Added primitives for assignment 5, part 3