Necessary libraries inserted, grid added to smkey