added rudimentary functionality for uesr stories 4-7