added HW1, bugs in reverse by words