Saving blocks as parameters in classes