Now that you have 3 services, you can go to System Preferences -> Keyboard -> Shortcuts -> Services. Spotify Web Player Hotkeys. Next : Alt+Shift+Right Arrow. There are different Spotify keyboard shortcuts on Windows and on Mac. Report abuse. Just Open Spotify in the Taskbar or Minimise it into the System Tray, And Whenever you are in any Application, Just Move Your Cursor into the. How to use Spotify keyboard shortcuts on Mac or Windows 10 PC? Volume Up: Control + Up Arrow. Click on a track or album and drag it into a social media post, instant messaging chat, or similar to easily create a link that anyone who uses Spotify can click to check out the track. The F11/F12 keyboard volume controls no longer control the volume on Spotify playback. Select or deselect all the songs in a list. There's a ton more like that, though, so take your pick. However, since switching to the Windows 10 app (from the official app store), I can't find a working . If you love listening to musing and don't know how to use Spotify keyboard shortcuts on Mac or Windows 10If you love listening to musing and don't know how to use Spotify keyboard shortcuts on Mac or Windows 10If you love listening to musing and don't know how to use Spotify keyboard shortcuts on Mac or Windows 10While you here, let's have a fun game and get…. Spotify Web Player vs Desktop: Hotkeys. For consumers in the European Union, please note that consumer rights do not apply to contracts between you and this developer. Tap Open when prompted with the “is an app downloaded from the internet” warning. It supposedly will create a keyboard shortcut to do exactly that-"heart" the current song. The only simple mantra to learn Spotify shortcut is to spend less time clicking and more time listening to the music. Keyboard shortcuts. Spotify is trialing a new ability for users to turn off their personalized recommendations, according to beta code. If you are using a non-Apple keyboard, go to System Preferences → Keyboard → Shortcuts → Launchpad & Dock and select the checkbox next to Show Launchpad. A: Yes. 1. The services you just made should be in the General section, which is at the very bottom of the list for me. There also used to be a little app called Toastify, which was built for global Spotify hotkeys. • 16 days ago. Spotify Menubar, a free utility developed by Life Up North, gives your Spotify for Mac a bit of keyboard shortcut love with controls to trigger play and pause, previous and next track, and so forth. The only mantra as to why we need to learn Spotify shortcut keys is to listen to more music and spend less time moving around. Other Spotify hotkeys such as Command+Left Arrow and Command+Right Arrow still function in this state, but not the space bar for. . Refresh a Genius Playlist (when the playlist is selected) Command-R. These allow you to put any number of playlists into a single group; greatly cutting down on the noise in one step. Windows Shortcut Mac Shortcut; Play/Pause: Ctrl + Space: Cmd + Space: Previous Track: Ctrl + ←: Cmd + ←: Next Track: Ctrl + →: Cmd + →: Volume Up: Ctrl +. Empty Area of the Taskbar and Just Scroll Up Or Down, This Will Fade In a Simple. Here's the specific situation: When I use the Command + W shortcut to close the client window, I expect the window to close but my. 5 or later. Make sure the script has the executable flag set. This will open a new pop up dialogue window where you can enter your preferred shortcut for Spotify going back or forward. Simply minimize the Spotify window by pressing on the Minimize button in the top-right corner of the window (Windows) or the. I have a Logitech MK320 keyboard and the keys to go to the next or previous song won't work. Open the Spotify app on your PC and visit the library section. " A "Stop Audio In" screen will open. The download should start instantly. Certain universal shortcuts—such as Command + Z for undo or Command + C for copy—are probably stuck in your head after so many years of using them. Mac users can download it here. How To Reduce The Size Of Spotifykeyboard; shortcuts; spotify. 2. Spotify Home Shortcuts are one of the most obnoxious things I've seen. 0. In short - if you have a keyboard doesn't have multimedia keys somewhere on it, but has an associated software, then try to see if you. However, by installing the Spotify Web Player Hotkeys extension, you can still control song play with your keyboard with the. Currently using a logitech G710+, and used a corsair K90 and a razer BW chroma. However, other shortcuts might come as a surprise. Tap Add to Siri to enable the Spotify Siri shortcuts. Some keys on some Apple. This Post will help you to check and make your Spotify Windows work more faster with Most Used Shortcut keys of Spotify Windows. After Musicality is installed, click the hamburger menu button, go to Tools ( More Tools in Mac) and select Extensions. 2017-09-24 05:32 PM. Option + Command + M or Shift + Command + M. Developer. You can search for the widget using the search bar at the top, or scroll through the list until you see Spotify. Next, tap on Get Shortcut to save it in the Shortcuts app on iPhone/iPad. Would be nice if Spotify implemented. There are no keyboard actions defined (RETURN, SPACE, Shift-F10, Menu, etc. Ctrl + T: Create a new playlist. SpotifyGlobalKeys. Scroll down to the General Section and find your Spotify PlayPause item. You must have a combined karma of 40 to make a post, and your reddit account must be at least 30 days old; this is to prevent spam and is strictly enforced. A spare keyboard and mouse are among important extras to have on hand. Type your account information, and then click "Log In. Open up the minimized Spotify window: Cmd+Option+1. Shop Elgato Stream Deck MK. You can easily add the extension from Chrome Web Store. Ctrl + Alt + Right = Next track. Now that you have 3 services, you can go to System Preferences -> Keyboard -> Shortcuts -> Services. Ctrl + Down Cmd + Down Lower volume. It can play on all your devices but still Spotify is available on more devices than Apple Music. It defaults to the following key combos, all set to work when Chrome is in focus (i. More information >>PROBLEM SYMPTOM: You listen to music using Spotify, iTunes or any other media player desktop software program in your Windows computer or Mac and you control the playback of media files using multimedia keys present on your keyboard. 1-signed add-ons was break down. Here are a couple of the most important hotkeys on the two extensions: Chrome: Play/Pause: Alt + Shift + P; Next Track: Alt +. Don't worry - it's quick and painless!Mac menus and keyboards often use symbols for certain keys, including modifier keys: Command (or Cmd) ⌘. Added automation properties to support screen readers . Your song will continue playing even when you do so. Play Album: Alt+Shift+G. Keyboard shortcuts. I gave it the ⌃⌘P shortcut). 2) Open your start menu. Works with my Corsair keyboard, even while in-game. Thank you! View solution in original post. Advertisement So, that’s it. Keyboard shortcuts. Open Spotify. ) as well as mini players and global hotkeys. Click on the type and version of your operating system. Search your Mac and the web, and be more productive with custom actions to control your Mac. There are people using various keyboard mapping apps such as AutoHotkey (where you have to write a script for this) or Hotkeyz. Play Spotify in the Background. The slider on the app works, and likewise Command <Up> or <Down> arrow work to control volume, but no longer the F11/F12 keys. If you’re running Spotify using the desktop app, your browser could hijack the media controls. Ctrl + Shift + N: Create a new playlist from a selected song. I use Spotify everywhere. There's something I've tried to figure out, but I can't seem to resolve it. 345. com: Play/Pause media key: play, pause Previous media key: previous track Next media key: next track There is no default shortcut, but you can also bind keys for: Toggle shuffle Toggle repeat (once, all, disabled) Toggle song like. For full list of shortcuts Spotify offers, peek into this article. Right-click in the area where you want to store the shortcut, and then choose New→Shortcut from the pop-up menu that appears. Thank you for your help. Can anyone help creating a shortcut so that we can listen to Spotify playlist directly. 4. Spotify popularized the streaming music revolution, and it’s still going strong. Click the add shortcut button and press the combination of keys that will be your shortcut. . 2. This developer has not identified itself as a trader. ctrl+shift+right) would be such an great improvement in the usefulness of. but when I listen to music in my desktop (iTunes, for example), I use my keyboard's hotkeys to go to the next song. IINA. Step 3: Connect Spotify TUI to Your Spotify App. In a few minutes, you'll have the app installed on your computer. Here’s how you can minimize your Spotify app on a Mac: With the Spotify for Mac app open, click on the yellow button on the top-left of the window. On desktop, open the Spotify app or the web player. com. Right-click in the area where you want to store the shortcut, and then choose New→Shortcut from the pop-up menu that appears. Steps: Press [Windows] + [X] and select [Command Prompt (Admin)] Input cd "C:Program FilesWindowsApps". Added Stop hotkey . Step 1: Connect the keyboard to the Mac and click on the little Apple icon in the upper left corner. Here is a list of the most popular playback shortcuts: – Space: Play/Pause the song. Install the Spotify web player hotkey extension for Chrome, or install the Firefox add-on for Spotify hotkeys. You can ask Siri to: Play songs, artists, albums, playlists, podcasts; Like music to save it to Your Library; Tell you what’s currently playing; Change the volume; Skip tracks; Play/pause; And more! Just say “Hey, Siri” followed by your command, then “on Spotify”. 4. 12/24/2020 Though Apple Music has beaten Spotify in winning more subscribers in the US, there are some loyal Spotify users, who do not want to switch to Apple Music. On desktop, open the Spotify app or the web player. 2. Plan Premium Country Norway Device Windows Operating System Windows 10 My Question or Issue Alt-Left and Alt-Right doesn't work for me anymore. Useful Shortcut Reference Tables. You can now set a keyboard shortcut to run each service, which in turn should run the AppleScript to perform the Media Action you want. Marked as solution. Features. While playing a game, even in full-screen mode, you can open the Xbox Gamebar. ^Up:: { ControlSend, ahk_parent, ^ {Up}, ahk_class SpotifyMainWindow. A new window will appear. python console extension schedule cross-platform livestream filter repl luajit hotkeys macros cmd obs obs-studio single-file obs-scripts obs. There should be a + sign - click it. Go to your desktop or browse to the folder in which you want to store the shortcut. I gave it the ⌃⌘P shortcut). If you don't like this feature and wish Chrome, Safari, Firefox, or Edge would just leave your media keys alone, you can still disable it. However, other shortcuts might come as a surprise. The official support article for the US Spotify hotkeys is out of date, so heres what's missing: Shift+(Left,Right) Skip five seconds back/fwd Ctrl+r Toggle Repeat mode (Once, infinitely, off) Ctrl+s Toggle Shuffle on/off Ctrl+Shift+a. 1. I have keyboard shortcuts for pausing and skipping music. ). Command + Shift + I: Open new email message containing only the URL of a page. 2018-03-02 07:52 AM. Similar to the Sleep Timer in Spotify, your music will now stop playing when the timer runs out. Spotify Web Player Hotkey is a nifty Chrome extension that lets you set up regular keyboard shortcuts to pause, play next and previous tracks in Spotify’s online app. When the keyboard remains unplugged, turn the back switch to ON. It was very annoying and this was the top search result when looking for a solution => FYI for anyone affected: there is a setting in about:config media. Go to System Preferences > Keyboard > Shortcuts and select Services from the left column. . Caps Lock ⇪. 30 keyboard shortcuts Mac users need to know This collection of keyboard shortcuts for macOS can help users get the most from their iMacs, MacBook Pro and MacBook laptops. I found this: C:Program FilesWindowsAppsSpotifyAB. 7. A perfect solution would be a Quick Switcher like they have in Slack. You can right-click on the Spotify shortcut and select "Pin to taskbar. lnk : Alt+Ctrl+Z C: est est02. Desktop (Mac) Desktop (Linux) Content Questions; Car Thing; Other (Podcasts, Partners, etc. With Toastify being deprecated, and AHK scripts never really working for me, I decided to create an app for global hotkeys myself. Go figure. On the pop-up screen, you should see the Link Account option that lets you link your Spotify account to Game Bar. Using a late 2021 MacBook Pro, iOS Ventura 13. Spotify at least provide a way to clean up Home Shortcuts. Reload to refresh your session. My Question or Issue. Use keyboard media hotkeys to control YouTube, Youtube Music, Spotify, Tidal, Deezer and improve focus and increase productivity-> Click on the bottom "More apps" -> Scroll to the bottom and select "Look for another app on this PC" -> At the top of the window insert this: %AppData% -> Find and enter the folder Spotify -> Choose Spotify. Display the current playing track in a customizable toast-like popup; Global hotkeys for media actions (Play/Pause, Next/Previous track, Volume Up/Down, Mute, Seek Forward/Backward) Compatible with the Microsoft Store version of Spotify It’s easy to control your Spotify playback using your keyboard. 5. On desktop, open the Spotify app or the web player. Spotify is different from its competitors because it has native Windows and Mac apps, while most of its competitors only have web versions for desktop use. If you think your message has hit the spam filter let us know. Here's how the macro looks visually: add hot key shift-option-l; create sequence: Activate. Play/Pause: Spacebar; Next Track: Ctrl+Right Arrow (Windows) or Command+Right Arrow (Mac) Previous Track: Ctrl+Left Arrow (Windows) or Command+Left Arrow (Mac) Spotify Shortcuts are an alternative way of moving around in Spotify. Before we can post your question we need you to quickly make an account (or sign in if you already have one). Shift. Full control to manage your music songs. To select all songs from this playlist, click CTRL + A for Windows and Cmd+A for Mac. Advanced shortcuts for power users. Over to You! Now make the most of these easy shortcuts to rev up your music experience. 1. Use media hotkeys to control Youtube, Youtube Music, Spotify, Tidal and Deezer Improve Focus and Increase Productivity by using your keyboard media keys ⏪⏯⏩ to control your favorite. Here’s how you can download Spotify for Mac: Visit spotify. Search and filter shortcuts to find what will speed up your workflow. – Ctrl +. Other keyboard shortcuts, like Ctrl-Right and Shift-Right work fine. Next song: Control + Right Arrow. Go figure. I am trying to figure out if there is a way to forward keyboard shortcuts to the spotify process while it's running in the background, im specifically looking for options+shift+B to like a song, so if I'm listenening to Discover Weekely I can just add the currently playing song to my Liked Songs without having to open the spotify. I used to launch Spotify by using a keyboard hotkey. Control + Command + F. For Windows users AutoHotkey is a fairly workable. Spotify App Data Android Import Spotify Playlist To Apple Music Mac Widgets For Spotify By Montesano Nicole Apk Spotify In App Phone Notification Sprint Customers Free Spotify Spotify Download Music Take Up Space On Phone Spotify Unlimited Skip Mod Apk Spotify Shazam App Spotify Apk Mod 7. Search and filter shortcuts to find what will speed up your workflow. Whether you stick with the Free offering or have upgraded to Premium, you can streamline your listening experience The media keys were working fine, but after the latest spotify update, it stopped. Quit Spotify and close the application: Cmd + Q. It proxies media key events to iTunes or Spotify. Ctrl + Alt + Left = Previous track. Toastify adds global hotkeys and toast notifications to Spotify. When you want to bind another command, just replace spotify prev with the command. Right-click in the area where you want to store the shortcut, and then choose New→Shortcut from the pop-up menu that appears. 🙂. zip. We'll also. As you did a lot of great shortcuts for the Spotify Mac OS app I could use my touchbar to surf in the web and listen to new music and control the next song, search and so on. 3) Right click on the icon, select more, select add to process line. songs, or albums by using Command + F shortcut on Mac or Control + F shortcut on PC. Vasil. Spotify has over two dozen keyboard shortcuts, which let you navigate through and manage your library with just a few buttons on your Mac or PC. Release your finger to finish the voice command. Keyboard Shortcuts for Desktop Users on Mac Basic. Tapping the green Start button to begin the timer. Keyboard shortcuts make using Spotify even easier. Press at the same time one of these key combinations on your keyboard: Mac: ; ; ; Windows:; ; ; You should now see a list of all keyboard shortcuts. If you're using Spotify on your desktop, these keyboard shortcuts will come in handy to navigate your way around the app more smoothly. I get to this. Start your stream/recording for at least 30 seconds (or however long it takes for the issue to happen). What follows here is our choice of the most useful keyboard shortcuts (for all OS X versions, starting with OS X 10. Click the add shortcut button and press the combination of keys that will be your shortcut. The global hotkey function is absolutely important to me as I am mostly working on my laptop in fullscreen mode and I do not have dedicated multimedia buttons to toggle between tracks. After Musicality is installed, click the hamburger menu button, go to Tools ( More Tools in Mac) and select Extensions. After some firefox updates the Spotify_hotkeys 0. myTuner Radio Pro. Click the button so that both are ready. 6. The official support article for the US Spotify hotkeys is out of date, so heres what's missing: Shift+(Left,Right) Skip five seconds back/fwd Ctrl+r Toggle Repeat mode (Once, infinitely, off) Ctrl+s Toggle Shuffle on/off Ctrl+Shift+a. It shows a popup, toast style, dialog. g. . g. Volume controls and alike. Certain Keyboard Shortcuts Aren’t Functioning. If you select Spotify, it will only work when Spotify is in focus. YouTube, surprisingly, can be a great tool to discover new artists and music. Hide the Spotify window: Cmd + H. Right-click the installer and select Open. media keys worked on all of them for every program except spotify. Spotify at least provide a way to clean up Home Shortcuts. Here’s how to set it up: Open the Clock app. For iOS 17, you only need to add 3 actions to create a Shazam to Apple Music shortcut. You can do this by following the steps outlined below: 1. Spotify Web hotkeys. Developer. Spotify Menubar was developed to work on Mac OS X 10. Using a late 2021 MacBook Pro, iOS Ventura 13. To use Spotify Hotkeys, simply download and install the program, and then run it. Since There Isn't Any Hotkeys For This Procedure But Still We Can Go For Something, For This Purpose, Make Sure To Have The Creators Update for WIndows 10. In the Create Shortcut dialog’s Type the Location of the Item text box, type spotify:search:, and then press Ctrl+V. Then, click on the ” Hotkeys ” button. Copy (alternative link) Select all: Control + A. – Ctrl + Shift + Down Arrow: Decrease. exe ->. Download the release, extract it and just run Spotify-Hotkeys. I have listed up the keyboard shortcuts in a tabular format. Click or tap the "Device" icon in the Spotify app screen's lower right-hand corner. Here’s how: 1 / 4. Keyboard shortcuts make using Spotify even easier. If you think your message has hit the spam filter let us know. Alfred is an award-winning app for macOS which boosts your efficiency with hotkeys, keywords, text expansion and more. Or when you are gaming and you want another song but you don't want to alt tab and stay idle, a (customizable?) Global Hotkey(i. . g7ff4a0dc has caused Toastify's global shortcut keys function to stop working. Such as the minimize button works on every other program on my desktop just not spotify. This guide, backed by in-depth knowledge and insights, aims to enhance your Spotify experience, showcasing the platform’s efficiency and ease of use. For easy reference, here are table summaries of the most useful Spotify keyboard shortcuts: Playback ShortcutsIn the Game Bar toolbar, click the Widget menu icon. r/spotify. Restart practice run. Added automation properties to support screen readers . Shortcuts Spotify for MacOS MacOS We present to your attention the shortcuts for the Spotify for MacOS which is used on the operating system MacOS, in this hotkeys. Install from Chrome Web Store. Step 3: Go to the SLOBS Editor screen. com Spotify has over two dozen keyboard shortcuts, which let you navigate through nearly your entire library with just a few buttons on your computer's keyboard. Click on the downward-pointing arrow next to your profile picture and name in the upper right corner. 1-signed. Now launch Shortcuts app on your iOS device and tap on three dots on Spotify Siri shortcut. 1. , you’re in a different tab): Alt + Shift + P — Play/Pause. If you love listening to musing and don't know how to use Spotify keyboard shortcuts on Mac or Windows 10Here are the new ways to use the updated integrated + button and what you’ll see in the Spotify app: Tap to save: To save a song or podcast episode, tap the Plus (+) button to the right of the. 1. You can choose something like "Spotify Siri" or "Play Spotify. Here's my simple script (as an example just volume up): ; "CTRL + UP" for volume up. However, if you install Hotkey extensions for Chrome and Firefox you will be able to use the Hotkeys you normally have in the Spotify Apps. With your app created, you're going to input your client ID and client secret in Spotify TUI to connect your account. Press at the same time one of these key combinations on your keyboard: How to use Spotify keyboard shortcuts on Mac Create a new playlist: Command + N Cut a song to paste elsewhere: Command + X Copy a song to paste elsewhere: Command + C Paste a song into a playlist: Command + V Select all songs in a playlist: Command + A Delete: Delete Play or pause the current track:. Just press Ctrl+Shift+G (Windows) or Cmd+Shift+G (Mac) to easily bring up the GIF. Note: The desktop app isn't currently available in South Korea. How easy to press shortcuts: 83%. We will explore some of the most useful Spotify. Best Karaoke Software For Mac; How To Install & Use Spotify For Mac; Best External Hard Drives For Mac; With this in mind then, here are the best DJ software for Macs in order of ranking. - Current versio is firefox 53. When the Keyboard is plugged into the computer. Description. Volume Down: Control + Down Arrow. On Reddit there was only one post which calls Siri to play something on Spotify, and then add that voice command in shortcuts. In Google Chrome, Microsoft Edge, and other Chromium-based browsers, you can disable the "Hardware Media Key Handling" flag. Alt + ← (left arrow) to go to the previous song. Save with a useful name like "Spotify Next Track". 2023-09-06 09:59 PM. Just Open Spotify in the Taskbar or Minimise it into the System Tray, And Whenever you are in any Application, Just Move Your Cursor into the. by nuggyut. In the pop-up bar, click Allow for the Spotify download to start. If you like using hotkeys to navigate your music collection on Spotify, you’ll be happy to know that the web browser version of Spotify has you covered. 😉. Speak your command. I suggest reading this Ghacks article on what you can do to stop this. Featured on Meta Update: New Colors Launched. Once sound controls are accessible from the menu bar, it's simple to route the sound from your Mac to the HomePod. Even when explicit content is turned off, unwanted shortcuts to **bleep** appear in Home Shortcuts, and there's virtually no way to get rid of it. Use the web player to listen on desktop. Make sure to exit by clicking the three dots at the top. Headphones are Arctis 7 and they are selected as default device. So, instead, I fell back to my favorite free third-party keyboard/shortcut tool, QUicksilver. Even when explicit content is turned off, unwanted shortcuts to **bleep** appear in Home Shortcuts, and there's virtually no way to get rid of it. 6. Now save the file, and go to System preferences -> Keyboard, and select the shortcuts tab. Linked. On desktop, open the Spotify app or the web player. Option (or Alt) ⌥. When you use this shortcut, the song will be added to your “Liked Songs” playlist. spotify. Shortcuts stops execution and waits for its turn. Press Win + R to open the Run dialog, then enter shell:startup and click OK or Enter. Ideally I'd like to have that scrollwheel re-bound to control the volume on Spotify, without affecting the master volume. Below we list the most important Spotify keyboard shortcuts for Windows and Mac. Keyboard shortcuts. Below are some of the best shortcuts for running. Aug 28, 2020 List of Spotify Keyboard Shortcuts for Windows and Mac. Now, this is where the process becomes a bit more complicated. Contact the developer. That's why I chose to use IFTTT for that purpose. This subreddit is mainly for sharing Spotify playlists. While Apple Music and Spotify both offer. Shuffle: Control + S. In the Create Shortcut dialog’s Type the Location of the Item text box, type spotify:search:, and then press Ctrl+V. Esc. Next, tap on Get Shortcut to save it in the Shortcuts app on iPhone/iPad. Spotica Menu is an MacOs menubar and Mini Player that shows Spotify or iTunes/Apple Music* currently playing track, album, album cover, etc. Search. Search and open Spotify. Repeat a song: Control + R. I also tried enabling the hidden windows option in the script, but that didn't change anything. To create a playlist folder in Spotify, open the Spotify desktop/Mac app > Go to File > New. ctrl + play/pause for starting spotify playback ctrl + shift + play/pause for pausing spotify. For clicking purposes, clicking at the speaker icon to the left of the volume slider will also mute/unmute. Program name: Spotify (Media player) Spotify is a popular digital music service. Anytime you use the common shortcuts Command/⌘+X (cut) or Command/⌘+ C (copy), your Mac handily stores what you copy onto the Clipboard. g. To like a song, save to playlist etc. It has free and premium plans that allows to access millions of songs with your smartphone or from your desktop. Step 1. Try to run it, it should work. Alfred is an award-winning app for macOS which boosts your efficiency with hotkeys, keywords, text expansion and more. This shortcut is an easy way to let Shazam identify the currently playing song and add it to a predefined Spotify playlist. Then on the left search the Actions for "Run AppleScript", then drag it to the right. 3)Go to SystemPreferences->Keyboard->Shortcuts->Services and scroll down to the "General" dropdown. com. No, it's not. To make any song in Spotify play next, right-click it and choose Add to queue. Open the Spotify app on your computer. Click on the “+” icon on the bottom left, and select your custom layout from the list in the sidebar. Step 1: Launch Spotify. Shortcuts Spotify for MacOS MacOS We present to your attention the shortcuts for the Spotify for MacOS which is used on the operating system MacOS, in this hotkeys description 28 of the most popular and important shortcuts are offered. Three years later and Spotify still lacks AirPlay 2. To play the next track – enter ALT + Shift + Period. Insert the code from step 1 as prompted. 3.