Separate function for header and footer instead of options, class << self for class methods added
sum_total => calculate_total,attr_accessor used,calculating price only while generating invoice