removed parameters and used this to refer to cup object