associated blocks with object and functions