My playtime code based on exercises from Shannon Turner