written first test to implement class and method