This function is better expressed using io_lists, like this
```erlang
part_name (Name, Part) ->
  list_to_binary ([Name,"-",integer_to_list (Part)]).