added basic functionality and objects
minor modification for in the search calss