Code writing

having troubles with code