implemented passing tests