Resolve exercises from chapter one