solved Point5

using melt and dcast.