updated code file with code