completed hw3 part 3 after debugging restler issues