Added init function example