first version of my code