Removed unnecessary arrays and updated example

Refs: #5