made basic code working