refactoring for easier readability
adding a simple workflow for testing