homework-3 (first commit)

Not fully working version.