Fixed property accessing and added 'max' method.