Adds model and view. License under Apache v2.

Signed-off-by: Bob Hogg <hogg.bob.2@gmail.com>