Fleshed out assignment code.