Added basic class construction. Fixes #5