Added getName method to Block