Create class function

Signed-off-by: Daniel Francis <francis@sugarlabs.org>