formatting prices with a method