initial work on calculation module