google Python class  exercise solution