Fixing the "restfulness", achieving 100/100 on homework2