committing first solution