changed instance methods to class methods
defined process_tags metjod for tag class
moved tag processing outside of template class
process tags in build method