First commit. Interface taken frmo notes.