added stuff from tutorial from James