Added codes pertaining to homework 1.
Added codes pertaining to homework 2.