Code written but with errors