version 1 of code