Bad code implemented