forgot else-if and else construct in grammar. added it