vomit code for problem 3