implemented based on example for mean, basic interactive testing