Complete assignment 3a-d