finished peter's python design class