Use prototype pattern in modules