Refactored code for setValue
Merge branch 'master' of https://github.com/Fingerpaint/project-code