A Primer on Answer Set Programming