checking in first attempt at working code