Adding working code for the first time