implemented stories, scenarios and helper functions for unit testing