fixed constructor and added example
fixed constructor and added example