from real python class