added listing package and simple scala definition
added pattern building code snippets