completed exercises with shift operators