wrote the code of the userstory logicaly, but techincaly not working