combined defining methods & classes lectures into one