Maybe  "public long getCost()" is missing