Finalized the implementations
Deleted example.cpp