added working structure
added working code
fixed build