hw1 basic problems wrote, to be tested