completed assignment

filled function stubs, commented stuff