included solution to question and created versions