implemented subset function and unit test