adding rspecs for 2 test cases, as well as solution to 1.2