First wrong code
Fixed code