Defined tick variables and added closures
Created block class