Begin hw4 and remove unnecessary function wrapping
added some solutions to hw4