finished hacker part of pset1